package com.kool.evowkf.bean.io.approve;

import com.kool.core.base.BaseBean;
import com.kool.core.exception.AppException;
import com.kool.core.validate.IIoValidate;

/**
 * @AUTHOR LUYU
 */
public class CMQRYAPRTREEXBean extends BaseBean implements IIoValidate {
	protected String userCid;

	public String getUserCid() {
		return userCid;
	}

	public void setUserCid(String userCid) {
		this.userCid = userCid;
	}

	@Override
	public void validate() throws AppException {
		// 最大长度校验
		if (userCid != null && userCid.length() > 10) {
			throw new AppException("SY000038","userCid",String.valueOf(10));//字段[%1]大于最大长度[%2]
		}
	}
}